<?php //echo $route_name; ?>
<ul class="nav nav-list">
	<li class="nav-header">The menu</li>
	<?php foreach ($map as $route => $title): ?>
		<li 
			<?php if($route == $route_name): ?> 
				class="active"
			<?php endif; ?>
		>
			<a href="<?php echo $view['router']->generate($route) ?>"><?php echo $title ?></a>
		</li>
	<?php endforeach; ?>
</ul>